import { post, get, put, Delete, form } from "@/axios/http.js";
import { basicApi } from "@/api/index.js"
// 点赞
export default {
    namespaced: true,
    state: {},
    actions: {
        // 相册-照片-点赞/取消点赞
        giveAdd({ commit },params){
            return put(basicApi.give.giveAdd, params).then(res=>{
                if(res.data.code == 200){
                    return res.data.result
                }else{
                    this._vm.$message.error(res.data.msg)
                }
            });
        },
        // 相册-照片-新建点赞
        addGive({ commit },params){
            return post(basicApi.give.addGive, params).then(res=>{
                return res
            });
        },
        // 相册分页点赞列表-查询
        pageCommentlist({ commit },params){
            return post(basicApi.give.pageCommentlist, params).then(res=>{
                return res
            });
        },
    },
    mutations: {},
};
